package jf.collections;

/**
 * @author ivanalx
 * @date 06.05.2009 15:31:46
 */
public class Tuple {
	public static <T1, T2> Tuple2<T1, T2> asT(T1 t1, T2 t2) {
		return new Tuple2<T1, T2>(t1, t2);
	}

	public static <T1, T2, T3> Tuple3<T1, T2, T3> asT(T1 t1, T2 t2, T3 t3) {
		return new Tuple3<T1, T2, T3>(t1, t2, t3);
	}

	public static <T1, T2, T3, T4> Tuple4<T1, T2, T3, T4> asT(T1 t1, T2 t2, T3 t3, T4 t4) {
		return new Tuple4<T1, T2, T3, T4>(t1, t2, t3, t4);
	}
}